<%@page import="com.baoyanghui.common.Constants"%>
<%@page import="com.baoyanghui.common.Utils"%>
<%@page import="com.baoyanghui.config.Configs"%>
<%@page import="com.baoyanghui.common.InterfaceAccess"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="com.baoyanghui.model.Customer"%>
<%@page import="net.sf.json.JSONObject"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% 
	if (Utils.empty((String)request.getSession().getAttribute(Configs.SESSION_USER_ID))
			|| (Constants.USER_TYPE_MERCHANT == (Integer)request.getSession().getAttribute(Configs.SESSION_USER_TYPE))) {
		response.getWriter().print("<script type='text/javascript'>\n");
		response.getWriter().print("window.location.href='" + request.getContextPath() + "/index.jsp';\n");
		response.getWriter().print("</script>\n");
		response.getWriter().flush();
		return;
	}
%>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/my_setting.js"></script>
<% 
	JSONObject customerProfile = null;
	Customer profile = null;
	Map<String, String> params = new HashMap<String, String>();
	
	try {
		request.setCharacterEncoding("UTF-8");
		params.put("customer_id", (String)session.getAttribute(Configs.SESSION_USER_ID));
		params.put("usercode", (String)session.getAttribute(Configs.SESSION_USERCODE));
		
		customerProfile = InterfaceAccess.callInterface("/customer/get_profile", params);
		profile = (Customer)JSONObject.toBean(customerProfile.getJSONObject("resultData"), Customer.class);
	} catch (Exception e) {
		profile = new Customer();
	}
%>
<div style="width: 350px; height:850px; float: left; position: relative; top: -5px;
	background: url('../image/line_vertical_gradient.png') right repeat-y;">
	<div style="width: 325px; height: 55px; padding-left: 20px; font-size: 14pt; border-bottom: 1px solid #e2e2e2;"
		onclick="showBasicInfo();" class="pointer">
		<span style="padding-top: 15px;">基本信息</span>
	</div>
	<div style="width: 325px; height: 55px; padding-left: 20px; font-size: 14pt; border-bottom: 1px solid #e2e2e2;"
		onclick="showCarInfo();" class="pointer">
		<span style="padding-top: 15px;">车辆信息</span>
	</div>
</div>
<div style="width: 400px; height:850px; float: left; position: relative; top: -5px; padding-left: 10px;
	background: url('../image/line_vertical_gradient.png') right repeat-y; overflow: hidden;">
	<div id="scroll_top" style="width: 380px; height: 25px; background: gray; display: none;" class="pointer" onclick="scrollToTop();">next</div>
	<div id="div_setting_detail" style="width: 400px; height:800px; overflow: hidden;">
	</div>
	<div id="scroll_bottom" style="width: 380px; height: 25px; margin-top: 25px; background: gray; display: none;" class="pointer" onclick="scrollToBottom();">next</div>
</div>
<div style="clear: both;"></div>